/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package database;

/**
 * factory used to determine database
 *
 * @author Rick
 */
public abstract class DAOfactory {

    //list of DAO types supported by the factory
    //currently only mysql
    public static final int MYSQL = 1;

    public abstract ConnectionDAO getConnectionDAO();
    public abstract UsedDAO getUsedDAO();
    public abstract VisualizationDAO getVisualizationDAO();

    public static DAOfactory getDAOfactory(int whichFactory){
        switch(whichFactory){
            case MYSQL:
                return new MySqlDAOFactory();
            default:
                return null;

        }
    }

}
